package cn.jbooter.ctx.autoconfigure.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;


/**
 * application级别的自定义配置类
 * @author HeJian
 *
 */
@ConfigurationProperties(prefix = "spring.custom")
public class CustomApplicationProperties {
	
	/** 自定义配置文件位置 **/
	private Config config = new Config();
	
	public Config getConfig() {
		return config;
	}
	public void setConfig(Config config) {
		this.config = config;
	}

	/**
	 * 自定义配置文件位置
	 * @author HeJian
	 *
	 */
	public static class Config {
		/**
		 * 自定义配置文件路径,支持locationPattern,多个以,号隔开eg:classpath:config/app/system.yml
		 */
		private String locations;

		public String getLocations() {
			return locations;
		}
		public void setLocations(String locations) {
			this.locations = locations;
		}
	}
	

}
